import instance from './instance.js'
export
function getCollect(data) {
	return instance({
		url: '/member/courses/like',
		data
	})
}

export
function getUserInfo() {
	return instance({
		url: '/member/detail',
	})
}
export
function changePassword(data) {
	return instance({
		method: 'post',
		url: '/member/password',
		data,
	})
}
export
function changeMobile(data) {
	return instance({
		method: 'post',
		url: '/member/mobile',
		data,
	})
}
export
function changeName(data) {
	return instance({
		method: 'post',
		url: '/member/nickname',
		data,
	})
}
export
function changeHeadImage(data) {
	return instance({
		method: 'post',
		url: '/member/avatar',
		data,
	})
}
export
function orderPlanDetail(data) {
	return instance({
		url: '/member/roles',
		data,
	})
}
export
function getMessage(data) {
	return instance({
		url: '/member/messages',
		data,
	})
}
export
function getCourse(data) {
	return instance({
		url: '/member/courses',
		data,
	})
}
export
function getCourseHistory(data) {
	return instance({
		url: '/member/courses/history',
		data,
	})
}
export
function getOrders(data) {
	return instance({
		url: '/member/orders',
		data,
	})
}
export
function inviteBalanceRecrods(data) {
	return instance({
		url: '/member/inviteBalanceRecrods',
		data,
	})
}
export
function promoCode() {
	return instance({
		url: '/member/inviteBalanceRecrods',
	})
}
export
function inviteBalanceRecrods() {
	return instance({
		method: 'post',
		url: '/member/promoCode',
	})
}

export
function notificationMarkAsRead(data) {
	return instance({
		url: '/member/promoCode',
		data
	})
}
export
function unreadNotificationCount(data) {
	return instance({
		url: '/member/unreadNotificationCount',
		data
	})
}
export
function notificationMarkAllAsRead() {
	return instance({
		url: '/member/notificationMarkAllAsRead',
	})
}
export
function inviteUsers(data) {
	return instance({
		url: '/member/inviteUsers',
		data
	})
}
export
function withdrawRecords() {
	return instance({
		url: '/member/withdrawRecords',

	})
}
export
function withdraw(data) {
	return instance({
		method: 'post',
		url: '/member/withdraw',
		data
	})
}
export
function credit1Records() {
	return instance({
		url: '/member/credit1Records',
		
	})
}
export
function profile() {
	return instance({
		url: '/member/profile',
		
	})
}
export
function profile(data) {
	return instance({
		method:'post'
		url: '/member/profile',
		data
	})
}